package com.gusto.engine.colfil;

/**
 * <p>An {@link Evaluation} is an abstract class that represents 
 * both a {@link Prediction} and a {@link Rating}.</p>
 * 
 * @author amokrane.belloui@gmail.com
 *
 */
public abstract class Evaluation {
	
	private long userId;
	private long itemId;
	
	private Double value = null;
	
	public Evaluation() {
		super();
	}
	
	public Evaluation(Double value) {
		this();
		this.value = value;
	}
	
	public Evaluation(long userId, long itemId, Double value) {
		super();
		this.userId = userId;
		this.itemId = itemId;
		this.value = value;
	}

	public String toString() {
		return "Eval " + userId + "-" + itemId + " : " + value;
	}
	
	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public long getItemId() {
		return itemId;
	}

	public void setItemId(long itemId) {
		this.itemId = itemId;
	}
	
	public Double getValue() {
		return value;
	}

	public void setValue(Double value) {
		this.value = value;
	}
	
}
